<?php

namespace app\mini\controller\v1\shop\validate;


use think\Validate;

class CustomerValidate extends Validate
{
    protected $rule = [
        'member_id'      => 'require',
        'member_ids'      => 'require',
        'car_id'      => 'require',
        'type'        => 'require',
        'id'        => 'require'
    ];

    protected $message = [
        'member_id.require'      => '用户ID必填',
        'type.require'      => 'type必填',
        'car_id.require'      => '车辆ID必填',

    ];

    protected $scene = [
        'car_edit'  => ['name', 'car_age','mileage','phone','price','detail','cover_img'],
        'info'  => ['member_id'],
        'orders'  => ['member_id'],
        'more_info'  => ['car_id','type'],
        'maintain_detail'  => ['id'],
    ];
}